<template>
	<keep-alive>
	<view class="wrapper">
		<image src="../../static/bizhan/s22.jpg" mode="widthFix" class="shareImg"></image>
		<tki-qrcode ref="qrcode" cid="cid" background="#1A3DBA" pdground="#ffffff"  foreground="#ffffff" :val="shareCode" :size="300" :onval="true" :loadMake="true" />
	</view>
	</keep-alive>
</template>

<script>
	import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
	import h5Copy from '@/common/h5-copy.js'
	export default {
		data() {
			return {
				shareCode:''
			};
		},
		onPullDownRefresh(){
			uni.startPullDownRefresh({
				success: () => {
						window.location.reload()
				}
			});
		},
		components: { tkiQrcode },
		onLoad(e) {
			this.$ajax(this.apiList.userGet).then(res => {
				this.shareCode='https://smkok.com/h5/#/pages/start/register?inviteUserId=' + res.data.account
				console.log(res)
			});
		
			// setTimeout(()=>{
			// 	console.log(h5Copy(123))
			// },1000) 
		}
	}
</script>

<style lang="scss">
.tki-qrcode{
		position: absolute;
		top: 600rpx;
		left: 250rpx;
	}
.shareImg{
	width:100% 
	
}
.wrapper{
	background: #1A3DBA;
	position: relative;
}
</style>
